#ifndef _SERVICE_IMPL_H
#define _SERVICE_IMPL_H

#include <iostream>

#include "service.h"
#include "department.h"
#include "employee.h"
#include "servicedao.h"
#include "servicedao_file_impl.h"

using namespace std;
class ServiceImpl:public Service
{

	ServiceDao* m_pDao;

public:
	ServiceImpl(void);
	bool addDept(Department& department); //增加部门
	bool deleteDept(int id); //删除部门
	void listDept(void); //列出部门
	bool addEmp(Employee& employee,int dept_id); //增加员工
	bool deleteEmp(int _id); //删除员工
	bool modifyEmp(Employee& employee); //修改员工信息
	void listEmp(int id); //列出部门员工
	void listAllEmp(void); //列出所有员工
	void myList(void);
	~ServiceImpl(void);
};

#endif //_SERVICE_IMPL_H